//
//  synMessageListModel.h
//  Messenger
//
//  Created by YN on 2017/11/30.
//  Copyright © 2017年 YN-APP-iOS. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface SynMessageListModel : NSObject

//会话ID,2人会话时为对方的userno，组会话为dis_xxx
@property(nonatomic,copy)NSString *chatId;
//会话类型：1二人会话，2群、讨论组，3广播
@property(nonatomic,assign)int chatType;
//会话唯一id
@property(nonatomic,copy)NSString *primaryKey;
//最后一条消息："<message id=\"Msg_PC_2b560eee-6285-4339-a1d7-0202c478b158\" to=\"dis_6833ef3da521@conference.messenger.yineng.com.cn\" from=\"20_dev_smesis@messenger.yineng.com.cn/Msg_PC\" type=\"groupchat\"><body>{。。。。。}</body><sendTime xmlns=\"com:yineng:sendTime\">2017-11-30 10:15:52.125</sendTime></message>"
@property(nonatomic,copy)NSString *lastMsg;
//消息回执的内容： "<message id=\"Msg_PC_d50c53d0-a284-45fc-97b2-bd47dc30be97\" to=\"admin@messenger.yineng.com.cn\" from=\"15_dev_smesis@messenger.yineng.com.cn/Msg_PC\" type=\"headline\"><received xmlns=\"urn:xmpp:receipts\" id=\"dis_f1c65c02e469\" type=\"2\"/><sendTime xmlns=\"com:yineng:sendTime\">2017-11-29 17:06:30.315</sendTime></message>";
@property(nonatomic,copy)NSString *receivedFlag;
//最后一条消息的时间：时间戳
@property(nonatomic,strong)NSNumber *lastMsgDate;
//会话列表的所有人id
@property(nonatomic,copy)NSString *owner;
//未读消息数量
@property(nonatomic,assign)int unreadCount;
//未读消息id
@property(nonatomic,copy)NSString *unreadMsgIds;

@end
